package com.cynthia.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

    @RequestMapping("/login")
    public String login(Model model, String username,String password){
        System.out.println("用户名："+username);
        System.out.println("密码："+password);
        System.out.println("====登陆====login()=======");
        return "login";
    }


    @RequestMapping("/toLogin")
    public String toLogin(){
        return "login";
    }
}
